home *** CD-ROM | disk | FTP | other *** search
/ Galleria D'arte: Manet / Manet.iso / Dati / Quiz.dxr / 00006_Switch Mouseenter fiori.ls < prev    next >
Encoding:
Text File  |  2000-12-21  |  1.4 KB  |  33 lines

  1. property pCastORIG, pCastFB1, pFB2, pCastFB2, pCUR, pMASK, pCURdn, pMASKdn
  2.  
  3. on getPropertyDescriptionList
  4.   pippo = the memberNum of sprite (the currentSpriteNum + 1)
  5.   pluto = pippo + 1
  6.   paperino = pippo + 2
  7.   propertyDescriptionList = [#pCastORIG: [#comment: "Numero elemento del Cast di origine del bottone", #format: #integer, #default: pippo], #pCastFB1: [#comment: "Numero elemento del Cast del primo feedback", #format: #integer, #default: pluto], #pCUR: [#comment: "Numero elemento del Cast da utilizzare come cursore", #format: #bitmap, #default: member(100)], #pMASK: [#comment: "Maschera cursore", #format: #bitmap, #default: member(101)], #pCURdn: [#comment: "Numero elemento del Cast da utilizzare come cursore per il mousedown", #format: #bitmap, #default: member(102)], #pMASKdn: [#comment: "Maschera cursore", #format: #bitmap, #default: member(103)]]
  8.   return propertyDescriptionList
  9. end
  10.  
  11. on mouseWithin me
  12.   set the foreColor of sprite the currentSpriteNum to 9
  13.   set the memberNum of sprite (the currentSpriteNum + 1) to pCastFB1
  14.   cursor(280)
  15.   updateStage()
  16. end
  17.  
  18. on mouseLeave me
  19.   set the foreColor of sprite the currentSpriteNum to 0
  20.   set the memberNum of sprite (the currentSpriteNum + 1) to pCastORIG
  21.   cursor(-1)
  22.   updateStage()
  23. end
  24.  
  25. on mouseDown me
  26.   set the memberNum of sprite (the currentSpriteNum + 1) to pCastORIG
  27.   set the foreColor of sprite the currentSpriteNum to 0
  28.   cursor(280)
  29.   repeat while the stillDown
  30.     updateStage()
  31.   end repeat
  32. end
  33.